@extends('layouts.app')
@section('title','帮助中心')
@section('content')
<!-- start: Content -->
<div class="row-fluid">		
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><span class="break"></span>帮助中心</h2>
		</div>
		<div class="box-content">
		<form action="{{ URL('app/help/delete') }}" method="POST">
			{{ method_field('DELETE') }}
			{{ csrf_field() }}
			<table class="table table-striped">
				<thead>
					<tr>
				  		<th style='width:10%;'>
				  			<a class="btn btn-primary" href="{{ URL('app/help/create') }}">增加</a>
				  			<button type="submit" class="btn btn-danger">删除</button>
				  		</th>
				  	</tr>
				  </thead>
			</table>
			<table class="table table-striped">
			<thead>
			  	<tr>
				  	<th style='width:15px;'></th>
					<th  style='width:30px;'>序号</th>
					<th>帮助问题标题</th>
					<th>操作</th>
			  	</tr>
			</thead>   
			<tbody>
				@foreach($help as $hv)
					<tr>
					<td>
						<input type="checkbox" name="hid[]" value="{{ $hv->id }}">
					</td>
						<td style='text-align: center;'>{{ $hv->id }}</td>
						<td>{{ $hv->title }}</td>
						<td class="center">
							<a class="btn btn-primary" href='{{ URL("app/help/$hv->id/edit") }}'>
								编辑
							</a>
						</td>
					</tr>
				@endforeach
			  </tbody>
		  </table>  
		</form>           
		</div>
	</div><!--/span-->

</div><!--/row-->
<!-- end: Content -->
@stop